#!/usr/bin/env node

var Radio = require('./03-radio.js');

var station = {
  freq:'106.7',
  name:'ni de yue liang wo de xin'
}

var radio = new Radio(station);

radio.on('open',function(station){
  console.log('"%s" FM %s opened',station.name,station.freq);
  console.log('aaaaaaaaaaa.......');
})

radio.on('stop',function(station){
  console.log('"%s" FM %s closed',station.name,station.freq);
});
